package com.test.fundible.fundible_09_setting;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.test.fundible.R;
import com.test.fundible.fundible_00_utils.FundibleConfigs;
import com.test.fundible.fundible_00_customer_service.Customer_fundibleServiceDialog;
import com.test.fundible.fundible_00_http.OkHttpUtil;

public class Setti_fundiblengActivi_fundiblety extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fundible_setting);
        //tag2024
//        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);

        findViewById(R.id.afs_ib_back).setOnClickListener(v -> onBackPressed());
        findViewById(R.id.afs_ib_cs).setOnClickListener(v -> new Customer_fundibleServiceDialog(this).show());

        TextView versionTv = findViewById(R.id.afs_tv_version);
        versionTv.setText(getString(R.string.setting_version, FundibleConfigs.fundible_VERSION_NAME));
        findViewById(R.id.afs_btn_logout).setOnClickListener(v -> {
            OkHttpUtil.getInstance_fundible().uploadEventPoint("SETTING","LOGOUT_CLICK","");
            new Log_fundibleoutDia_fundiblelog(this).show();
        });

    }


    @Override
    protected void onResume() {
        super.onResume();
        OkHttpUtil.getInstance_fundible().uploadEventPoint("SETTING","START","");
    }

    @Override
    protected void onPause() {
        super.onPause();
        OkHttpUtil.getInstance_fundible().uploadEventPoint("SETTING","END","");
    }

}